<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.sys.TSysAddress"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
		<title>个人信息管理</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>

		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1><label>游客信息管理</label></h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
						<!-- 个人信息展示 -->
					<div class="information" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>游客个人基本信息</label>
						</h4>
						<div class="input-container">
							
							<table class="info-table">
						
								<tr>
								<th><label>游客姓名</label></th>
								<td colspan="5">
								<input type="hidden" name="UserID" value="${newVSysUSer.getUserID()}" readonly="readonly"/>
									<label>${newVSysUSer.getUserName()}</label>
								</td>
								</tr>
								<tr>
								<tr>
								<th><label>身份证件号</label></th>
								<td colspan="5">
									<label>${newVSysUSer.getIdentity()}</label>
								</td>
								</tr>
								<tr>
								<th><label>性别</label></th>
								<td colspan="2">
								 <label> ${newVSysUSer.getSex()}</label>
								</td>
								<th><label>类型</label></th>
								<td colspan="2">
									<label><c:if test="${newVSysUSer.getUserType()==0}"><label>游客</label></c:if>
</label>
									
								</td>
								
							</tr>
								<tr>
								
								<th><label>游客登录账号</label></th>
								<td colspan="2">
								 <label> ${newVSysUSer.getUserAccount()}</label>
								</td>
								<th><label>绑定手机号</label></th>
								<td colspan="2">
									<label>${newVSysUSer.getUserMobile()}</label>
									
								</td>
								
							</tr>
							<tr>
								
								<th><label>固定电话</label></th>
								<td colspan="2">
								 <label> ${newVSysUSer.getTel()}</label>
								</td>
								<th><label>邮箱</label></th>
								<td colspan="2">
									<label>${newVSysUSer.getMail()}</label>
									
								</td>
								
							</tr>
							<tr>
								
								<th><label>传真</label></th>
								<td colspan="2">
								 <label> ${newVSysUSer.getFax()}</label>
								</td>
								 <th><label>推荐人编码</label></th>
								<td colspan="2">
									<label>${newVSysUSer.getUpUserName()}</label>
									
								</td>
								
							</tr>
							<tr >
								<th><label>所属公司</label></th>
								<td colspan="2">
								<label>${newVSysUSer.getOrgName()}</label>
								</td>
								
								<th><label>职位</label></th>
								<td colspan="2">
									<label>${newVSysUSer.getJob()}</label>
								</td>
								
							</tr>
							<tr>
							
							<th><label>证件照片</label></th>
								<td colspan="5">
									<label>${newVSysUSer.getCadePath()}</label>		 
								</td>
							</tr>
						
							<tr>
								<th><label>个人照片</label></th>
								<td colspan="5">
									<label>${newVSysUSer.getPhotoPath()}</label>
								</td>
								
							</tr>
							<tr >
							<th><label>会员状态</label></th>
								<td >
								<c:if test="${newVSysUSer.getMemberState()==0}"><label>正常</label></c:if>
			                <c:if test="${newVSysUSer.getMemberState()==1}"><label>禁用</label></c:if>
								</td>
								
								<th><label>是否为VIP</label></th>
								<td >
									<label>${newVSysUSer.getVIP()}</label>
								</td>
								<th><label>是否为黑名单</label></th>
								<td >
									<label>${newVSysUSer.getBlack()}</label>
								</td>
							</tr>
							<tr>
<th><label>备注</label></th>
								<td colspan="5">
									<label>${newVSysUSer.getMemo()}</label>
								</td>
</tr>
					
						</table>
						</div>	
					<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>收获地址信息</label>
						</h4>
						<div class="input-container">
						<div class="at-float-right">
							<input type="button" class="btn " value="新建"  onclick="location.href='/mmy/tocreatememberaddress?iUserID='+${newVSysUSer.getUserID()}"/>
							<input type="button" class="btn " value="修改"  onclick="updateMemberAddress()"/>
							<input type="button" class="btn"  value="删除" onclick="delMemberAddressBatch()"/>
						</div>
						
							<table class="info-table">
						<tr>
						<th>
									<input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">全选
									</th>
									<th><label>编号</label></th>
								<th><label>收货人姓名</label></th>
								<th><label>收件人电话</label></th>
								<th><label>收件地址</label></th>
								<th><label>邮编</label></th>
								<th><label>地址类型</label></th>
								<th><label>备注</label></th>
						</tr>
						 <c:forEach items="${newVSysAddress}" var="vSysAddress" varStatus="status">
								<tr>
								<td ><input
                 			   type="checkbox" name="ckone" value="${vSysAddress.getAddressID()}"
			                    onclick="ckOne(this)" /></td> 
			                     <td ><label>${vSysAddress.getAddressID()}</label></td>
								<td >
									<label>${vSysAddress.getName() } </label>
								</td> 
								<td >
									<label>${vSysAddress.getMobile() } </label>
								</td> 
								<td >
									<label>${vSysAddress.getZoneName() }</label>
								</td> 
								<td >
									<label>${vSysAddress.getPostcode() } </label>
								</td> 
								<td >
									<c:if test="${vSysAddress.getType()==1}"><label>家</label></c:if>
			                <c:if test="${vSysAddress.getType()==2}"><label>学校</label></c:if>
			                 <c:if test="${vSysAddress.getType()==3}"><label>公司</label></c:if>
			                  <c:if test="${vSysAddress.getType()==4}"><label>其他</label></c:if>
								</td> 
								<td >
									<label>${vSysAddress.getMemo() } </label>
								</td> 
								</tr>
								</c:forEach>
						</table>
						<center>
			
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
						</div>	
					</div>
					<!-- 个人信息结束 -->

				
				</section>
				
					
					
			</article>
			
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>